package com.erp.products.addproduct.mapper;

import com.erp.products.addproduct.domain.ErpProductsPrices;
import com.erp.products.productlist.domain.ErpProducts;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AddproductMapper{

    void basic();

    List<String> listUnit();

    List<String> listProductType();

    List<String> listCategory();

    void addPrice(ErpProductsPrices erpProductsPrices);

    int addProducts(ErpProducts erpProducts);

    // 确保这个方法使用了@Param注解
    boolean updateProductImage(@Param("productId") Long productId,
                           @Param("productImage") String productImage);

}
